Optimal. Leaf size=120 \[ \frac{(m+1) x^{m+1} \cos ^2\left (a+b \log \left (c x^n\right )\right )}{4 b^2 n^2+(m+1)^2}+\frac{2 b n x^{m+1} \sin \left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{4 b^2 n^2+(m+1)^2}+\frac{2 b^2 n^2 x^{m+1}}{(m+1) \left (4 b^2 n^2+(m+1)^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0318313, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {4488, 30} \[ \frac{(m+1) x^{m+1} \cos ^2\left (a+b \log \left (c x^n\right )\right )}{4 b^2 n^2+(m+1)^2}+\frac{2 b n x^{m+1} \sin \left (a+b \log \left (c x^n\right )\right ) \cos \left (a+b \log \left (c x^n\right )\right )}{4 b^2 n^2+(m+1)^2}+\frac{2 b^2 n^2 x^{m+1}}{(m+1) \left (4 b^2 n^2+(m+1)^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4488
Rule 30
Rubi steps
\begin{align*} \int x^m \cos ^2\left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac{(1+m) x^{1+m} \cos ^2\left (a+b \log \left (c x^n\right )\right )}{(1+m)^2+4 b^2 n^2}+\frac{2 b n x^{1+m} \cos \left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{(1+m)^2+4 b^2 n^2}+\frac{\left (2 b^2 n^2\right ) \int x^m \, dx}{(1+m)^2+4 b^2 n^2}\\ &=\frac{2 b^2 n^2 x^{1+m}}{(1+m) \left ((1+m)^2+4 b^2 n^2\right )}+\frac{(1+m) x^{1+m} \cos ^2\left (a+b \log \left (c x^n\right )\right )}{(1+m)^2+4 b^2 n^2}+\frac{2 b n x^{1+m} \cos \left (a+b \log \left (c x^n\right )\right ) \sin \left (a+b \log \left (c x^n\right )\right )}{(1+m)^2+4 b^2 n^2}\\ \end{align*}
Mathematica [C] time = 0.319739, size = 91, normalized size = 0.76 \[ \frac{x^{m+1} \left (2 b (m+1) n \sin \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+(m+1)^2 \cos \left (2 \left (a+b \log \left (c x^n\right )\right )\right )+4 b^2 n^2+m^2+2 m+1\right )}{2 (m+1) (-2 i b n+m+1) (2 i b n+m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.07, size = 0, normalized size = 0. \begin{align*} \int{x}^{m} \left ( \cos \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \right ) ^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.25935, size = 872, normalized size = 7.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.501269, size = 275, normalized size = 2.29 \begin{align*} \frac{2 \,{\left (b m + b\right )} n x x^{m} \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) \sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) +{\left (2 \, b^{2} n^{2} x +{\left (m^{2} + 2 \, m + 1\right )} x \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2}\right )} x^{m}}{m^{3} + 4 \,{\left (b^{2} m + b^{2}\right )} n^{2} + 3 \, m^{2} + 3 \, m + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]